package com.hero.herocat.handler;

import com.hero.servlet.HeroRequest;
import com.hero.servlet.HeroResponse;

/**
 * @author linhui
 */
public interface IHandler {
    /**
     * 是否需要处理请求
     * @param name
     * @return
     */
    boolean needHandle(String name);

    /**
     * 处理请求
     * @param request
     * @param response
     * @throws Exception
     */
    void handle(HeroRequest request , HeroResponse response)throws Exception;
}
